﻿using System.Collections.Generic;
using AgencyManagerSystem.DataFetcher;
using AgencyManagerSystem.Model;

namespace AgencyManagerSystem.DataUpdater
{
    public class RoleUpdater : MainDetailUpdater<RoleModel, RoleTableModel>
    {
        public RoleUpdater(RoleFetcher fetcher,RoleTableFetcher dFetcher, MainRoleUpdater updater) : base(fetcher,dFetcher,updater) { }
        public class MainRoleUpdater : BaseUpdater<RoleModel>
        {
            internal MainRoleUpdater() : base(new RoleFetcher()) { }
        }
        public static MainRoleUpdater GetMainUpdater()
        {
            return new MainRoleUpdater();
        }
    }
}
